import request from "@/utils/request"
const prefixUrl = "/ap/sync";
export class NetworkAccessManagementApi {
    static reqPostAutoNetworkAccess(data:any) {
        return request.post(`${prefixUrl}/auto`,data);
    }

    static reqPostSatelliteLongitude(data:any) {
        return request.post(`${prefixUrl}/lon_store`,data);
    }

    static reqGetAutoNetworkAccessStatus(){
        return request.post(`${prefixUrl}/auto_get`)
    }

    //卫星经度获取
    static reqGetSatelliteLongitude(){
        return request.post(`${prefixUrl}/lon_store_get`)
    }

    // 获取状态
    static reqGetStatus(){
        return request.post(`${prefixUrl}/state`)
    }

    // 获取选星配置项
    static reqGetStateSelectConfig(){
        return request.post(`${prefixUrl}/sate_get`)
    }

    // 设置选星配置项
    static reqSetStateSelectConfig(data:any){
        return request.post(`${prefixUrl}/sate_select`,data)
    }
 
    //设置波束配置
    static reqSetBeamConfig(data:any){
        return request.post(`${prefixUrl}/beam_set`,data)
    }

    // 获取波束配置
    static reqGetBeamConfig(){
        return request.post(`${prefixUrl}/beam_get`)
    }

    // 设置信标频率
    static reqSetBeaconFrequency(data:any){
        return request.post(`${prefixUrl}/bc_freq`,data)
    }

    // 获取信标频率
    static reqGetBeaconFrequency(){
        return request.post(`${prefixUrl}/bc_freq_get`)
    }

    // 波束获取
    static reqGetFrequencyPoint(){
        return request.post(`${prefixUrl}/freq_get`)
    }

    // 设置波束
    static reqSetFrequencyPoint(data:any){
        return request.post(`${prefixUrl}/freq_set`,data)
    }
    
    //删除波束
    static reqDeleteFrequencyPoint(data:any){
        return request.post(`${prefixUrl}/freq_del`,data)
    }
}

